import '../../../../net/fm_base_net_domain.dart';
import '../../../../net/fm_http_request.dart';
import '../../../../net/fm_net_param_manager.dart';

class FMEmergencySaveApi extends FMBaseNetDomain {

  final String orderId;

  final String json;

  FMEmergencySaveApi({
    required this.orderId,
    required this.json
  });

  @override
  String requestUrl() {
    return FMNetParamManager().getDefaultUrlPath("/directs/planned");
  }

  @override
  FMHttpMethodType methodType() {
    return FMHttpMethodType.post;
  }

  @override
  Map<String, dynamic> requestParams() {
    return {
      "listen" : orderId,
      "shouted" : json
    };
  }
}